package com.stormrage.entity.adm.rep;

import java.io.Serializable;
import java.util.List;

/**
 * @Title: AdmPermsRep.java
 * @Package com.stormrage.entity.adm.rep
 * @Description: 权限返回类
 * @author www.stormragetech.com
 * @date 2016年4月23日
 * @version V1.0
 */
public class AdmPermsRep implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 738764802100884382L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer role;

	private String perms;

	private List<AdmResRep> list;

	// ------------------------------- Fields -------------------------------

	public AdmPermsRep() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public String getPerms() {
		return perms;
	}

	public void setPerms(String perms) {
		this.perms = perms;
	}

	public List<AdmResRep> getList() {
		return list;
	}

	public void setList(List<AdmResRep> list) {
		this.list = list;
	}

	// ------------------------------- Fields -------------------------------

	public static AdmPermsRep instance(Integer id, Integer role, String perms, List<AdmResRep> list) {
		AdmPermsRep entity = new AdmPermsRep();
		entity.setId(id);
		entity.setRole(role);
		entity.setPerms(perms);
		entity.setList(list);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " role - " + role + " perms - " + perms + " list - " + list;
	}

}
